<?php $this->load->view("common/page_header");?>
	<?php $this->load->view("common/top_banner");?>
	<?php $this->load->view("common/header");?>
	<div id="body_main">
		<div class="story_top">
			<div class="story_title">我的行动中心</div>
			<div class="clear"></div>
		</div>
		<div class="top_border">
			<div class="arrow_up" style="left:90px"></div>
		</div>
		
		<div id="body_content" class="user_info">
			<?php $this->load->view("common/user_info_table");?>
			
			<div class="margin_top15">
				<?php $this->load->view("common/user_info_navigator");?>
				<div class="user_info_content">
					<div class="head">
						<ul class="suborder">
							<li ><a href="<?php echo site_url("user/messages")?>">未读信息</a></li>
							<li class="<?php if($type == 'system') {?>current<?php }?>"><a href="<?php echo site_url("user/messages?type=system")?>">系统信息</a></li>
							<li class="<?php if($type == 'private') {?>current<?php }?>"><a href="<?php echo site_url("user/messages?type=private")?>">私人信息</a></li>
							<li class="action"><a href="javascript:void(0)">+发送信息</a></li>
						</ul>
						<div class="arrow_up" style="left:36px;">						
							<em>◆</em>
							<span>◆</span>
						</div>
						<div class="clear"></div>
					</div>
					<form method="post" action="/user/message_create">
					<table class="b_table text_left_table vertical_top_table">
						<tr>
							<td width="80" class="bold">主题</td>
							<td width="600" class="bold"><?php echo $message['subject'];?></td>
						</tr>
						<tr>
							<td class="bold">发件人</td>
							<td><?php echo $message['msg_from'];?></td>
						</tr>
						<tr>
							<td class="bold">内容</td>
							<td style="border:1px solid #d9d9d9"><?php echo nl2br($message['content']);?></td>
						</tr>
						<?php if ($message['msg_from_id'] != 0 && $message['is_system'] != 1) {?>
						<tr>
							<td class="bold">现在回复？</td>
							<td style="padding:10px 0"><textarea class="input_textarea" style="width:99%" name="content"></textarea></td>
						</tr>
						<tr>
							<td>
							<input type="hidden" name="msg_to" value="<?php echo $message['msg_from'];?>"/>
							<input type="hidden" name="subject" value="回复：<?php echo $message['subject'];?>"/>
							<input type="hidden" name="related_id" value="<?php echo $message['id'];?>"/>
							</td>
							<td style="padding:10px 0"><input type="submit" class="button" value="立即回复" /></td>
						</tr>
						<?php }?>
					</table>
					</form>
				</div>
				<div class="clear"></div>
			</div>
		</div>
		
		
		<?php $this->load->view("common/footer");?>		
		
		<p class="center">Page rendered in {elapsed_time} seconds</p>
	</div>
	
<?php $this->load->view("common/page_footer");?>
